//
//  BaseVC.h
//  TuYouAPP
//
//  Created by L on 14-2-18.
//
//

#import <UIKit/UIKit.h>
#import "NavBar.h"
#import "SRRefreshView.h"
@interface BaseVC : UIViewController<NavBarDelegate,UITableViewDataSource,UITableViewDelegate,SRRefreshDelegate>
{
    BOOL isDragging;
    BOOL isLoading;
}
@property (nonatomic,strong) NavBar *navBar;
@property (nonatomic,strong) NSString *LeftBarTitle;
@property (nonatomic,strong) NSString *RightBarTitle;
@property (nonatomic,strong) NSString *Title;
@property (strong, nonatomic)  UITableView *tableview;
@property (nonatomic,strong)    NSString*   mPageName;
@property (nonatomic,assign) BOOL isBackBtn;
@property (nonatomic,strong)  SRRefreshView   *slimeView;
@property (nonatomic,assign) BOOL haveFullupRefreshView;
//上拉加载
@property (nonatomic, strong) UIView *refreshFooterView;
@property (nonatomic, strong) UILabel *refreshLabel;
@property (nonatomic, strong) UIActivityIndicatorView *refreshSpinner;
@property (nonatomic, strong) NSString *textPull;
@property (nonatomic, strong) NSString *textRelease;
@property (nonatomic, strong) NSString *textLoading;
@property (nonatomic, strong) NSString *textNoMore;
@property (nonatomic,assign) BOOL hasMore;
@property (nonatomic,assign) int page;

- (void)addPullToRefreshFooter;
- (void)startLoading;
- (void)stopLoading;
- (void)refresh;
////////
-(void)initWithRefreshTableViewIos7:(CGRect)rect Ios6rect:(CGRect)rect1;

-(void)setRightBarTitle:(NSString *)title;
-(void)setLeftBarTitle:(NSString *)title;
-(void)setTitle:(NSString *)test;

- (void)scrollViewDidScroll:(UIScrollView *)scrollView;

- (void)scrollViewDidEndDragging:(UIScrollView *)scrollView willDecelerate:(BOOL)decelerate;
- (NSUInteger)supportedInterfaceOrientations;
#pragma mark - slimeRefresh delegate

- (void)slimeRefreshStartRefresh:(SRRefreshView *)refreshView;
@end
